#coding=utf-8
from django.conf.urls import patterns, url

__author__ = 'czq'
from views import UsersView,GroupsView
usersView=UsersView()
groupsView=GroupsView()

urlpatterns = patterns('',

                       url(r'^users_register/$',usersView.register,name="users_register"),
                       url(r'^users_login/$',usersView.login,name="users_login"),
                       url(r'^users_logout/$',usersView.logout,name="users_logout"),
                       url(r'^users_setting-(?P<id>\d*)/$',usersView.setting,name="users_setting"),

                       url(r'^users_theme_list/$',usersView.users_theme,name="users_theme_list"),
                       url(r'^users_theme_reply_list/$',usersView.users_theme_reply,name="users_theme_reply_list"),

                       url(r'^users_show-(?P<id>\d*)/$',usersView.show,name="users_show"),
                       url(r'^users_manage-(?P<id>\d*)/$',usersView.users_manage,name="users_manage"),
                       url(r'^users_list/$',usersView.list,name="users_list"),

                       url(r'^groups_list/$',groupsView.list,name="groups_list"),
                       url(r'^groups_show-(?P<id>\d*)/$',groupsView.show,name="groups_show"),

)
